// src/pages/Home.tsx
import React from 'react';
import {Link} from 'react-router-dom';

const Home: React.FC = () => {
    const handleLogin = () => {
        localStorage.setItem('refresh', String(Date.now()));
    }
    return (
        <div>
            <h2 style={{cursor: "pointer"}} onClick={() => handleLogin()}>Home Page</h2>
            <nav>
                <ul>
                    <li>
                        <Link to="/about">About</Link>
                    </li>
                    <li>
                        <Link to="/contact">Contact</Link>
                    </li>
                </ul>
            </nav>
        </div>
    );
};

export default Home; 